package Demo06.Demo04;

public class Demo06_TaskFour {
    public static void main(String[] args) {
        float fm = 1;
        float fz = 1;
        float temp;
        float sum = 0;
        for(int i = 0; i < 20; i++) {
            temp = fm;
            fm = fz;
            fz = fz + temp;
            sum += fz / fm;
        }
        System.out.println(sum);

    }

}

